package com.dingyx.ps.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Service
public class PSVMDetailService extends PostStationRequest{

    private String serviceName = "vm.detail";
    Map<String, Object> params = new HashMap<>();

    /**
     * 获取点位
     */
    public void openApiMethod(){
        params.put("service", serviceName);
        super.openApiMethod(params);
    }
    public void openApiMethod(String vmCode){
        params.put("vm_code", vmCode);
        openApiMethod();
    }
}
